package com.mew.common.dc.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mew.common.entity.record.InoutRoom;
import com.mew.common.vo.web.InoutRoomVo;
import com.mew.common.vo.web.OnlineVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 进出房间表 Mapper 接口
 * </p>
 *
 * @author SK123
 * @since 2020-11-20
 */
@DS("mew_record")
public interface InoutRoomMapper extends BaseMapper<InoutRoom> {
    List<InoutRoomVo> getById(@Param("userId") Long userId);

    List<InoutRoomVo> getAll(@Param("type") Integer type, @Param("gameId") Integer gameId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<InoutRoomVo> getAllForEa(@Param("account") String account,@Param("userId") String userId,@Param("manager") String manager,@Param("startTime") String startTime, @Param("endTime") String endTime);

    List<InoutRoomVo> getDayData(@Param("gameId") Integer gameId, @Param("time") String time);

    List<InoutRoomVo> getDayDataById(@Param("gameId") Integer gameId, @Param("type") Integer type, @Param("time") String time);

    List<OnlineVo> countNum(@Param("gameId") Integer gameId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<OnlineVo> countNumOfRoomType(@Param("gameId") Integer gameId,@Param("type") Integer roomType, @Param("startTime") String startTime, @Param("endTime") String endTime);
}
